import request from '@/plugins/request/js/index.js';

export default {
	list(data, canRunState = true) {
		const instance = new request();
		const r = instance.get({
			url: '/v1/coach_orders',
			data: data
		});
		!canRunState && instance.stop(r)
		return r;
	},
	store(data, canRunState = true) {
		const instance = new request();
		const r = instance.post({
			url: "/v1/coach_orders",
			data: data
		});
		!canRunState && instance.stop(r)
		return r;
	},
	show(id, data, canRunState = true) {
		const instance = new request();
		const r = instance.get({
			url: `/v1/coach_orders/${id}`,
			data: data
		});
		!canRunState && instance.stop(r)
		return r;
	}
}